package com.diandi.signature.enums.fdd;

/**
 *  法大大客户角色
 * @author mwz
 * @create 2017-08-23 13:11
 * @version V1.0.0

 */
public enum CustomsRoleType {
    接入平台("1","接入平台"),
    担保公司("2","担保公司"),
    投资人("3","投资人"),
    借款人("4","借款人"),

    ;
    private String type;
    private String typeName;

    CustomsRoleType(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public static CustomsRoleType getEmun(String type){
        for (CustomsRoleType checkParamsType : CustomsRoleType.values()) {
            if(checkParamsType.getType().equals(type)){
                return checkParamsType;
            }
        }
        return null;
    }
}
